package com.yanqu.road.entity.activity.channelmusicroomrank;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.utils.property.Property;

@FieldTypeAnnotation(tableName = "t_u_ch_activity_music_room_rank_beauty", desc = "跨域妙音坊冲榜 玩家美女数据")
public class UserChannelMusicRoomRankBeautyData extends DataObject {
    @FieldTypeAnnotation(desc = "活动id", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户Id", select = true, update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "美女id", update = true)
    private int beautyId;
    @FieldTypeAnnotation(desc = "皮肤id", update = true)
    private int skinId;
    @FieldTypeAnnotation(desc = "免费次数")
    private int freeTimes;
    @FieldTypeAnnotation(desc = "道具次数")
    private int itemTimes;
    @FieldTypeAnnotation(desc = "当前参赛回合")
    private int joinRound;
    @FieldTypeAnnotation(desc = "评选获得的榜单积分,非0表示待处理")
    private long showScore;
    @FieldTypeAnnotation(desc = "评选排名,非0表示待处理")
    private int showRank;
    @FieldTypeAnnotation(desc = "结算的奖励")
    private Property showReward = new Property();

    public UserChannelMusicRoomRankBeautyData() {
    }

    public UserChannelMusicRoomRankBeautyData(int activityId, long userId, int beautyId, int skinId) {
        this.activityId = activityId;
        this.userId = userId;
        this.beautyId = beautyId;
        this.skinId = skinId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getBeautyId() {
        return beautyId;
    }

    public void setBeautyId(int beautyId) {
        this.beautyId = beautyId;
    }

    public int getSkinId() {
        return skinId;
    }

    public void setSkinId(int skinId) {
        this.skinId = skinId;
        setUpdateOption();
    }

    public int getFreeTimes() {
        return freeTimes;
    }

    public void setFreeTimes(int freeTimes) {
        this.freeTimes = freeTimes;
        setUpdateOption();
    }

    public int getItemTimes() {
        return itemTimes;
    }

    public void setItemTimes(int itemTimes) {
        this.itemTimes = itemTimes;
        setUpdateOption();
    }

    public int getJoinRound() {
        return joinRound;
    }

    public void setJoinRound(int joinRound) {
        this.joinRound = joinRound;
        setUpdateOption();
    }

    public long getShowScore() {
        return showScore;
    }

    public void setShowScore(long showScore) {
        this.showScore = showScore;
        setUpdateOption();
    }

    public int getShowRank() {
        return showRank;
    }

    public void setShowRank(int showRank) {
        this.showRank = showRank;
        setUpdateOption();
    }

    public Property getShowReward() {
        return showReward;
    }

    public void setShowReward(Property showReward) {
        this.showReward = showReward;
        setUpdateOption();
    }

    public void resetJoin() {
        this.joinRound = 0;
        this.showScore = 0;
        this.showRank = 0;
        this.showReward = new Property();
        setUpdateOption();
    }
}
